<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core">
	<head><title>IGNORED</title></head>
	<body>
		<ui:composition template="../templates/layout.xhtml">
			<ui:define name="windowTitle">Daily Market | Partners | View Deal Purchases</ui:define>
			<ui:define name="logoImage"><h:graphicImage library="images" name="logo_header.jpg" alt="logo" /></ui:define>
			<ui:define name="content">
				<div id="content" class="graphic_bg">
					<h:messages globalOnly="true" styleClass="form-messages" fatalClass="form-messages error" errorClass="form-messages error" warnClass="form-messages warn" infoClass="form-messages" />
					<h:panelGroup rendered="#{codeListBean.allDealCodesRendered}">
						<h:form>
							<h:dataTable id="codeTable" value="#{codeListBean.codesModel}" var="code" style="border-collapse: collapse;" rowClasses="odd-row, even-row" headerClass="header-row" columnClasses="id-col,data-col,tools-col">
								<h:column>
									<f:facet name="header">Customer</f:facet>
									<h:outputText value="#{code.customer}" />
								</h:column>
								<h:column>
									<f:facet name="header">Code</f:facet>
									<h:outputText value="#{code.code}" />
								</h:column>
								<h:column>
									<h:outputText value="#{code.codeUsedString}" styleClass="#{code.codeUsedStyle}" />
								</h:column>
							</h:dataTable>
						</h:form>
					</h:panelGroup>
				</div>
			</ui:define>
		</ui:composition>
	</body>
</html>